import http from "./request";
async function getBanner() {
  let { data } = await http.get("/banner/list");
  return data;
}

async function getList() {
  let { data } = await http.get("/shop/goods/list");
  return data;
}

async function getCate() {
  let { data } = await http.get("/shop/goods/category/all");
  return data;
}
//获取商品分类的所有数据

async function getDetail(id) {
  let { data } = await http.get("/shop/goods/detail?id=" + id);
  return data;
}
//详情页

export { getBanner, getList, getCate, getDetail };
